]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app-system: Fix memory leak
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 3 Nov 2013 21:18:39 +0000 (16:18 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 3 Nov 2013 21:20:00 +0000 (16:20 -0500)
The shell app takes a ref on the info.

src/shell-app-system.c

index 70bcb862a9cdf6cc76f3a50dd39fc4b7cd465656..4762909942aa5b077317e784333720650df93b0a 100644 (file)
@@ -142,6 +142,7 @@ shell_app_system_lookup_app (ShellAppSystem   *self,
 
   app = _shell_app_new (info);
   g_hash_table_insert (priv->id_to_app, (char *) shell_app_get_id (app), app);
+  g_object_unref (info);
   return app;
 }